﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Data.Common;
using vuonthieunhi.Library;
using vuonthieunhi.Models;


namespace vuonthieunhi.Areas.Administration.Models
{
    public class DistrictDao : BaseDao
    {
        public List<District> GetList()
        {
            return dbContext.Districts.ToList<District>();
        }

        public List<District> GetByProvinceID(int provinceId)
        {
            return dbContext.Districts.Where(c => c.ProvinceID == provinceId).ToList<District>();
        }
    }
}